home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_100 / 187_01 / show_err.c < prev    next >
C/C++ Source or Header  |  1985-12-29  |  861b  |  31 lines

  1. /*@*****************************************************/
  2. /*@                                                    */
  3. /*@ show_err - output two strings and ring the bell.   */
  4. /*@        Any CR/LFs must be in the strings.          */
  5. /*@                                                    */
  6. /*@   Usage:     show_err(s1, s2);                     */
  7. /*@       where s1 and s2 are strings to be displayed  */
  8. /*@         on the screen.                             */
  9. /*@                                                    */
  10. /*@*****************************************************/
  11.  
  12.  
  13. #define NULL 0x00
  14. #define NORM 0x07
  15.  
  16. int show_err(s1, s2)
  17. char *s1, *s2;
  18. {
  19.     int i;
  20.     char strbuf[5];
  21.  
  22.     conout(s1, NORM);
  23.     conout(s2, NORM);
  24.     strbuf[0] = 0x07;        /* ring the bell */
  25.     strbuf[1] = NULL;
  26.     for (i=0; i < 20; i++)
  27.         conout(strbuf,NORM);
  28.  
  29. }
  30.  
  31.